package com.example.zhaojianxu.signin.common.http

import com.example.zhaojianxu.signin.common.account.model.AccountEntity
import com.example.zhaojianxu.signin.common.account.model.UserEntity
import retrofit2.Call
import retrofit2.http.POST
import retrofit2.http.Query

/**
 * create by @zhaojianxu on 2019/2/25
 */
interface CommonApi{
    @POST("/CommonServer/loginClient")
    fun postLogin(@Query("username") account: String,
                  @Query("password") password: String): Call<UserEntity>

    @POST("/CommonServer/logonClient")
    fun postLogon(@Query("username") account: String,
                  @Query("password") password: String,
                  @Query("name") name: String,
                  @Query("number") number: String,
                  @Query("stid") stid: String): Call<String>

    @POST("/CommonServer/infoClient")
    fun postQueryInfo(@Query("uid") uid: Int): Call<UserEntity>

    @POST("/CommonServer/infoClientUpdate")
    fun postUpdateInfo(@Query("uid") uid: Int,@Query("name") name: String, @Query("number") number: String,@Query("password") password: String): Call<UserEntity>
}